﻿using MediatR;
using System.ComponentModel.DataAnnotations;

namespace RBACDuYaJun.Api.Appliction.Command.LeaveCommand
{
    /// <summary>
    /// 请假添加命令创建
    /// </summary>
    public class LeaveCreateCommand:IRequest<int>
    {
        /// <summary>
        /// 请假ID
        /// </summary>
        public int LeaveId { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string? LeaveName { get; set; }
        /// <summary>
        /// 部门
        /// </summary>
        public int Pid { get; set; }
        /// <summary>
        /// 请假类别
        /// </summary>
        public string? LeaveType { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime LeaveSdate { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime LeaveEdate { get; set; }
        /// <summary>
        /// 统计小时
        /// </summary>
        public int DateNum { get; set; }
        /// <summary>
        /// 报道时间
        /// </summary>
        public DateTime ComeDate { get; set; }
        /// <summary>
        /// 请假原因
        /// </summary>
        public string? LeaveReason { get; set; }
        /// <summary>
        /// 部门领导
        /// </summary>
        public string? Rolenames { get; set; }
        /// <summary>
        /// 审批状态
        /// </summary>
        public bool Sart { get; set; } = false;
        /// <summary>
        /// 审批不通过原因
        /// </summary>
        public string? ApproseIsno { get; set; }


        /// <summary>
        /// 添加人
        /// </summary>
        public string? addName { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? addDate { get; set; }
    }
}
